|
|
Started as an attempt at normal lightning, then I tried to make a kind
of ball lightning, neither was very convincing and frankly both looked a
bit of a mess. Looks more like tumbleweed but I had no bytes left to
include a desert... Still, I quite like the image and you can play
around with the seed() as well as the 3 (number of branches per step)
and the 6 (total number of steps) in the macro call to generate some
radically different tumbleweeds. I won't be entering this since I've got
others I like more :)
#macro L(p,n,m,r)#local l=vlength(p);#local
P=p+vnormalize(<rand(r),rand(r),rand(r)>-.5)*(.5-l)*.5;cone{p+z,(.5-l)/100,P+z,(.5-vlength(P))/100pigment{rgb(1-l+z*l)}}#if(n>0)L(p,n-1,m,r)#end#if(m)L(P,3,m-1,r)#end#end
L(0,3,6,seed(2))light_source{2-5*z,1}
Random Pete
Post a reply to this message
Attachments:
Download 'balllightning.jpg' (196 KB)
Preview of image 'balllightning.jpg'
|
|